package com.gqj.elec.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gqj.common.annotation.Excel;
import com.gqj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 物资检修对象 elec_material_repair
 * 
 * @author lxq
 * @date 2023-12-17
 */
public class ElecMaterialRepair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long repairId;

    /** 检修单号 */
    @Excel(name = "检修单号")
    private String batchNumber;

    /** 检修主题 */
    @Excel(name = "检修主题")
    private String repairTheme;

    /** 计划检修日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划检修日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planRepairDate;

    /** 检修人员ID */
    @Excel(name = "检修人员ID")
    private Long repairUserId;

    /** 检修人 */
    @Excel(name = "检修人")
    private String repairUserName;


    /** 物资类别 */
    private String materialCategory;

    /** 单据状态 */
    @Excel(name = "单据状态")
    private String repairStatus;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /**
     * 子列表
     */
    private List<ElecMaterialRepairdetail> elecMaterialList;

    public void setRepairId(Long repairId) 
    {
        this.repairId = repairId;
    }

    public Long getRepairId() 
    {
        return repairId;
    }
    public void setBatchNumber(String batchNumber) 
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber() 
    {
        return batchNumber;
    }
    public void setRepairTheme(String repairTheme) 
    {
        this.repairTheme = repairTheme;
    }

    public String getRepairTheme() 
    {
        return repairTheme;
    }
    public void setPlanRepairDate(Date planRepairDate) 
    {
        this.planRepairDate = planRepairDate;
    }

    public Date getPlanRepairDate() 
    {
        return planRepairDate;
    }
    public void setRepairUserId(Long repairUserId) 
    {
        this.repairUserId = repairUserId;
    }

    public Long getRepairUserId() 
    {
        return repairUserId;
    }
    public void setMaterialCategory(String materialCategory) 
    {
        this.materialCategory = materialCategory;
    }

    public String getMaterialCategory() 
    {
        return materialCategory;
    }
    public void setRepairStatus(String repairStatus) 
    {
        this.repairStatus = repairStatus;
    }

    public String getRepairStatus() 
    {
        return repairStatus;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<ElecMaterialRepairdetail> getElecMaterialList() {
        return elecMaterialList;
    }

    public void setElecMaterialList(List<ElecMaterialRepairdetail> elecMaterialList) {
        this.elecMaterialList = elecMaterialList;
    }

    public String getRepairUserName() {
        return repairUserName;
    }

    public void setRepairUserName(String repairUserName) {
        this.repairUserName = repairUserName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("repairId", getRepairId())
            .append("batchNumber", getBatchNumber())
            .append("repairTheme", getRepairTheme())
            .append("planRepairDate", getPlanRepairDate())
            .append("repairUserId", getRepairUserId())
            .append("materialCategory", getMaterialCategory())
            .append("remark", getRemark())
            .append("repairStatus", getRepairStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
